package com.hsyt.pms.security.entity;


import com.alibaba.fastjson.JSON;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class MenuDto implements Serializable{

	private static final long serialVersionUID = -902655019781277610L;

	private Function menu;
	
	private List<Function> childMenus = new ArrayList<Function>();

	public Function getMenu() {
		return menu;
	}
	public MenuDto() {}
	
	public MenuDto(Function func){
		this.menu=func;
	}
	
	public void setMenu(Function menu) {
		this.menu = menu;
	}

	public List<Function> getChildMenus() {
		return childMenus;
	}

	public void setChildMenus(List<Function> childMenus) {
		this.childMenus = childMenus;
	}
	
	@Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
